//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package sto.android.app;

import android.content.Context;
import android.os.Build;

public class StoTongJNI {
    private static StoJNI jni;
    private static String pdaBrand;
    public static final String Kaicom = "kaicom";
    public static final String Urovo = "urovo";
    public static final String RongXin = "rongxin";
    public static final String WangFeng = "wangfeng";
    public static final String EDB = "edb";

    StoTongJNI() {
    }

    public static StoJNI getIns(Context context) {
    	
    	String padBrand=getmPdaBrand();
    	
        if(padBrand.equals("kaicom")) {
            System.out.println("####brand:Kaicom");
            jni = KaicomJNI.getInstance(context);
        } else if(padBrand.equals("urovo")) {
            System.out.println("####brand:Urovo");
            jni = UboxunJNI.getInstance(context);
        } else if(padBrand.equals("rongxin")) {
            System.out.println("####brand:RongXin");
            jni = RongXinJNI.getInstance(context);
        } else if(padBrand.equals("wangfeng")) {
            System.out.println("####brand:WangFeng");
            jni = WangFengJNI.getInstance(context);
        } else if(padBrand.equals("edb")){
        	System.out.println("####brand:edb");
            jni = EdbDevJNI.getInstance(context);
        }else if(padBrand.equals("alps")){
            System.out.print("####brand:alps");
            jni= ZltdJNI.getInstance(context);
        }
        else {
            System.out.println("####brand:Kaicom else");
            jni = KaicomJNI.getInstance(context);
        }

        return jni;
    }

    public static String getmPdaBrand() {
        new Build();
        String brand = Build.BRAND;
        new Build();
        String model = Build.MODEL;
        System.out.println("####brand:" + brand + "-model:" + model);
        if(!brand.equals("kaicom") && !model.equals("420") && !model.equals("WDT420") && !model.equals("520") && !model.equals("521") && !model.equals("520S") && !model.equals("585") && !model.equals("585P") && !model.equals("K7")) {
            if(!model.equals("SQ41") && !model.equals("SQ42") && !model.equals("i6160S") && !model.equals("msm8610")) {
                if(model.equals("C40")) {
                    System.out.println("####brand:-model:rongxin");
                    return "rongxin";
                }else if(model.equals("HT101")){
                	System.out.println("####brand:-model:Engine else");
                    return "edb";
                } else if(model.equals("simphone")){
                    return "alps";
                }else if(!model.equals("NLS-MT60") && !model.equals("WF60")) {
                    System.out.println("####brand:-model:kaicom else");
                    return "kaicom";
                }
                else {
                    System.out.println("####brand:-model:wangfeng");
                    return "wangfeng";
                }
            }
            else {
                System.out.println("####brand:-model:urovo");
                return "urovo";
            }
        }
        else {
            System.out.println("####kkk brand:-model:kaicom");
            return "kaicom";
        }
    }
}
